var http=require("http");
var fs=require("fs");


http.createServer(function(req,res){
	//文件操作
	
	var url=myurl.parse(req.url,true).query.cb
	
	fs.readFile("./data.json",function(err,data){
		if(err){
			res.write("404");
		}else{
			
			res.writeHead(200,{"Content-Type":"text/plain;charest=utf-8"});
			res.write(url+"("+data+")");
		}
		res.end();
	})
	
}).listen(8080)

console.log("服务器开启了")